package com.hzy.fivepalace.common.type;

/**
 * 佣金发放状态类型枚举
 */
public enum CommissionIssueStatusTypeEnums {
    TYPE1(1, "已发放"),
    TYPE2(2, "发放中"),
    TYPE3(3, "待发放");
    private int id;

    private String desc;

    CommissionIssueStatusTypeEnums(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public static CommissionIssueStatusTypeEnums getEnum(int id) {
        for (CommissionIssueStatusTypeEnums typeEnums : CommissionIssueStatusTypeEnums.values()) {
            if (id == typeEnums.getId()) {
                return typeEnums;
            }
        }
        return null;
    }

    public int getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }
}
